<%@ include file="/WEB-INF/jsp/common/include.jsp"%>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="sec" %>
<html>
<head>
	<title><spring:message code="header.title" /></title>
	<link rel="stylesheet" href="<spring:theme code='css'/>" type="text/css"/>
</head>
<body>
<spring:message code="header.title" />
<table>
	<tr>
		<sec:authorize ifAnyGranted="ROLE_USER">
			<td><a href='<spring:url value="/logout" />'><spring:message code="header.logout" /></a></td>
		</sec:authorize>
		<sec:authorize ifNotGranted="ROLE_USER">
			<td><a href='<spring:url value="/login" />'><spring:message code="header.login" /></a></td>
			<td><a href='<spring:url value="register" />'><spring:message code="header.register" /></a></td>
		</sec:authorize>
		<td><a href='<spring:url value="?locale=en" />'><spring:message code="language.en"/></a> | <a href='<spring:url value="?locale=ru" />'><spring:message code="language.ru"/></a></td>
		<td><a href='<spring:url value="?theme=default" />'><spring:message code="theme.default"/></a> | <a href='<spring:url value="?theme=dark" />'><spring:message code="theme.dark"/></a></td>
	</tr>
</table>
<br>

<hr>